c# format string to date yyyymmdd

32

c# format string to date yyyymmdd -

DateTime dt = DateTime.ParseExact(dateString, "ddMMyyyy", 
                                  CultureInfo.InvariantCulture);
dt.ToString("yyyyMMdd");

Comments

Submit
0 Comments